<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<title>unpkg.com highlight.run bundle</title>
		<script src="https://unpkg.com/highlight.run"></script>
		<script>
			// should print console warning
			H.stop()
			H.init('1', {
				backendUrl: 'http://localhost:8082/public',
				environment: 'test',
				networkRecording: {
					enabled: true,
					recordHeadersAndBody: true,
				},
			})
			// starts new session, even though `H.init` may not have yet completed loading the script
			H.start({ forceNew: true })
			H.identify('vadim@highlight.io', { id: 'abc123' })
			// stops session
			H.stop()
			// forces a new session
			H.start({ forceNew: true })
			H.identify('jay@highlight.io', { id: 'def456' })
			// should continue to recording, with PushPayloads being sent every 2 seconds
		</script>
	</head>
	<body></body>
</html>
